package cn.skyclass.events
{
	
	import flash.events.Event;
	
	/**
	 * 分页控件使用的事件
	 */
	public class PagerEvent extends Event
	{
		public static const PAGE_CHANGED:String = "pageChanged";
		public static const TOTAL_PAGE_COUNT_CHANGED:String = "totalPageCountChanged";
		
		
		public var newPageIndex:int;
		public var totalPageCount:int;
		public var pageSize:int;
		
		public function PagerEvent(type:String, newPageIndex:int){
			super(type);
			this.newPageIndex = newPageIndex;
		}
		
		override public function clone():Event{
			var e:PagerEvent = new PagerEvent(this.type, this.newPageIndex);
			e.totalPageCount = this.totalPageCount;
			e.pageSize = this.pageSize;
			return e;
		}					
	}
}